package cn.itcast.bos.web.action.transit;

import javax.annotation.Resource;

import org.apache.struts2.convention.annotation.Action;
import org.apache.struts2.convention.annotation.Result;

import cn.itcast.bos.domain.transit.SignInfo;
import cn.itcast.bos.service.transit.SignInfoService;
import cn.itcast.bos.web.action.common.BaseAction;

public class SignInfoAction extends BaseAction<SignInfo>{
	@Resource
	private SignInfoService service;
	
	private String transitInfoId;
	
	public void setTransitInfoId(String transitInfoId) {
		this.transitInfoId = transitInfoId;
	}

	@Action(value="sign_save",results={@Result(name="success",type="redirect",location="pages/transit/transitinfo.html")})
	public String inoutstore_save(){
		service.save(transitInfoId,model);
		return SUCCESS;
	}
}
